package xin.marcher.module.construction.converter;

import org.mapstruct.Mapper;
import xin.marcher.module.construction.domain.dto.DraftImgDTO;
import xin.marcher.module.construction.domain.dto.DraftMainDTO;
import xin.marcher.module.construction.domain.entity.DraftImgDO;
import xin.marcher.module.construction.domain.entity.DraftMainDO;

import java.util.List;

/**
 * 品类相关对象克隆
 */
@Mapper(componentModel = "spring")
public interface DraftConverter {

    /**
     * 对象克隆
     *
     * @param draftMainDO
     * @return
     */
    DraftMainDTO convertDTO(DraftMainDO draftMainDO);

    List<DraftImgDTO> convertImgDTO(List<DraftImgDO> list);
}
